Skip to content

feat(cli): add -V/--version to http, agent, and mcp entry points - #73

Closed
RajGahoi wants to merge 1 commit into
m3lonxd:masterfrom
RajGahoi:feat/version-flags-entry-points
Closed

RajGahoi wants to merge 1 commit into
m3lonxd:masterfrom
RajGahoi:feat/version-flags-entry-points

Conversation

@RajGahoi

@RajGahoi RajGahoi commented Dec 2, 2026

Copy link
Copy Markdown

Closes #66

Summary

  • Added -V / --version (via argparse action="version") to:
    • computer-use-linux-http (adapters/http/server.py)
    • computer-use-linux-agent (adapters/cli/agent_loop.py)
    • computer-use-linux-mcp (adapters/mcp/server.py, exiting before _recover_session_env() and mcp.run(transport="stdio"))
  • Added offline unit tests in tests/test_http_server_edges.py, tests/test_agent_loop.py, and tests/test_mcp_server.py.

Testing

  • python -m py_compile passed on all 6 modified files.
  • python -m pytest tests/test_cli_parser.py tests/test_http_server_edges.py tests/test_agent_loop.py -v: 16 passed.

Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Thanks for starring the repository, @RajGahoi! The star-check status is now green.

@m3lonxd

m3lonxd commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Thanks @RajGahoi — the changes and the extra stdio test (test_main_no_args_recovers_env_and_runs_stdio) look clean.

Just to be transparent: #72 was opened earlier for #66 (and passed CI before v0.8.0 introduced a small rebase conflict on adapters/mcp/server.py and tests/test_mcp_server.py), so we are giving #72 first chance to rebase before deciding on #73.

@m3lonxd

m3lonxd commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Thanks again @RajGahoi for the clean implementation and tests! #72 was rebased cleanly onto master and merged (closing #66), so I am closing this duplicate PR.

Looking forward to your updates on #70 and #71!

@m3lonxd m3lonxd closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add -V/--version to computer-use-linux-http, -agent, and -mcp entry points

2 participants